home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2000 June (IDG) / Macworld_June_2000.iso / Shareware World / Utilities / Databasing / Troi-File-Plug-in2.0 / ConvertFMText.fp3 (.txt) < prev    next >
Encoding:
FileMaker Pro Database  |  2000-03-31  |  44.0 KB  |  231 lines  |  [FMP3/FMP3]

  1.  Copyright 1984-1998 FileMaker, Inc. 
  2. HBAM2016AUG95
  3. Pro 3.0
  4. HBAM3016AUG95@
  5. kZo{s
  6. o{kZg9^
  7. g9kZs
  8. o{kZg9c
  9. g9kZo{s
  10. o{kZg9g9
  11. g9kZkZo{s
  12. o{kZkZ
  13. kZkZo{o{s
  14. o{o{s
  15. o{kZc
  16. g9kZo{w
  17. kZg9^
  18. g9o{s
  19. o{g9c
  20. 1st Quarter
  21. 2nd Quarter
  22. 3rd Quarter
  23. 4th Quarter
  24. 3/31/00
  25. CONTENTS
  26.     CONTENTS2
  27. _CCONTENTSCONVERTED
  28. _CCONTENTSORIGINAL
  29. _CTEMP WIN
  30. _GDEFAULTFOLDER
  31. _GERRORCODE
  32. _GOUTPUTFILE
  33. _GSOURCEFILE
  34. _GTEMP
  35. _gSourceFileB
  36. _gDefaultFolderB
  37. contentsB
  38. _cContentsConvertedB
  39. |("TrFile-ConvertToFMText"
  40. TrFile-ConvertToFMText
  41. _cContentsOriginalB
  42. |("TrFile-ConvertFromFMText"
  43. $$-1B    KES:data:G
  44. nchenstra
  45. :-1:381:ggfhhgfhgfJ
  46. ConvertToFM
  47. ConvertFromFM
  48. ConvertToFMB
  49. TrFile-ConvertFromFMText
  50. _gTempB
  51. _cTemp WinB
  52. |("TrFile-ConvertFromFMText"
  53. TrFile-ConvertFromFMText
  54. _gOutputFileB
  55. _gErrorCodeB
  56. A    contents2B
  57. ConvertFromFMB
  58. ConverTextToFMFhThis file shows how get text from a file correctly converted to and from the internal
  59. FileMaker format.
  60.  2000 Troi Automatisering  `
  61. contents
  62. NOTE These 2 function work transparant on both Windows and Mac OS. However on Mac no conversion is done, as the internal FileMaker format is the same as Mac OS. Test this on Windows.
  63. ConverTextToFMFhThis file shows how get text from a file correctly converted to and from the internal
  64. FileMaker format.
  65.  2000 Troi Automatisering  `
  66. contents
  67. NOTE These 2 function work transparant on both Windows and Mac OS. However on Mac no conversion is done, as the internal FileMaker format is the same as Mac OS. Test this on Windows.
  68. 1- Get a text File m
  69. 2- Convert to FM format
  70. Variant 1: First get the contents of a text file into a field, without doing any conversion. Then convert the text to FileMaker format:
  71. x    contents2y
  72. Get a text File + convert
  73. ;AOVariant 2: Get the contents of a text file into a field, convert it right away:
  74. To Next Sample
  75. Close Demo File
  76. workB
  77. abcdefghijklmnopqrstuvwxyz{|}~
  78. Get a File Contents
  79. Convert TO FileMaker Format
  80. %Get Contents and convert to FileMaker
  81. -------------
  82. Convert FROM FileMaker Format
  83. SelectFile and Save in file
  84.   Write Contents to gOutputFile
  85. *Convert and Write Contents2 to gOutputFile
  86.   SelectFile
  87.     Open file
  88. Get a File Contents
  89. ConverTextFromFMFhThis file shows how get text from a file correctly converted to and from the internal
  90. FileMaker format.
  91.  2000 Troi Automatisering  `
  92. contentsi
  93. _gErrorCodek
  94. 2- Put it in a text File m
  95. 1- Convert From FM format
  96. ConverTextFromFMFhThis file shows how get text from a file correctly converted to and from the internal
  97. FileMaker format.
  98.  2000 Troi Automatisering  `
  99. contentsi
  100. _gErrorCodek
  101. 2- Put it in a text File m
  102. 1- Convert From FM format
  103. Variant 1: Put some text with some higher ASCII characters in the field contents. Then convert the text to FileMaker format by clicking the 1st button. With the 2nd button the contents is written to file.
  104. Convert and Write to a file
  105. ;ALVariant 2: Normally you
  106. d convert and put it in a file right in one script:
  107. Previous Sample~    contents2
  108. NOTE These 2 function work transparant on both Windows and Mac OS. However on Mac no conversion is done, as the internal FileMaker format is the same as Mac OS. Test this on Windows.
  109. Close Demo File
  110.     Helvetica
  111. Geneva
  112. Times New Roman
  113. A,This script will get the contents of a file.B
  114. |("TrFile-ContentsDialog"
  115.  "Please select a text file (with higher ASCII):")
  116. TrFile-ContentsDialog
  117. .Please select a text file (with higher ASCII):|
  118.   Write Contents to gOutputFile
  119.     A,This script will set the contents of a file.BI
  120. |("TrFile-CreateFile"
  121. TrFile-CreateFile
  122. |("TrFile-SetDefaultFileSpec"
  123. TrFile-SetDefaultFileSpec
  124. |("TrFile-SetContents"
  125. TrFile-SetContents
  126. Cancel
  127. The file was written.I
  128. Cancel
  129. An error occurred. See the layout for the error code.
  130. Convert TO FileMaker Format
  131. A/This will convert the text to FileMaker format.BS
  132. |("TrFile-ConvertToFMText"
  133. TrFile-ConvertToFMText
  134. A%Get Contents and convert to FileMaker
  135. AFThis script will get the contents of a file and convert it right away.B
  136. |("TrFile-ConvertToFMText"
  137. |("TrFile-ContentsDialog"
  138.  "Please select a text file (with higher ASCII):")
  139. TrFile-ConvertToFMText
  140. TrFile-ContentsDialog
  141. .Please select a text file (with higher ASCII):||
  142. Convert FROM FileMaker Format
  143. A1This will convert the text FROM FileMaker format.BW
  144. |("TrFile-ConvertFromFMText"
  145. TrFile-ConvertFromFMText
  146. SelectFile and Save in file
  147. A2This script will get let the user select a folder.B
  148. |("TrFile-Save FileSpec Dialog"
  149.  "Please specify a file:")
  150. TrFile-Save FileSpec Dialog
  151. Please specify a file:|C;
  152.  2) <> "$$"
  153. -------------
  154. A2This script will get let the user select a folder.
  155. |("TrFile-Get FileSpec Dialog"
  156.  "Please specify a file:")
  157. TrFile-Get FileSpec Dialog
  158. Please specify a file:|C;
  159.  2) <> "$$"
  160. Make it a full pathE]
  161. |("TrFile-FileSpec To FullPath"
  162. TrFile-FileSpec To FullPath
  163. A*Convert and Write Contents2 to gOutputFile
  164. A,This script will set the contents of a file.B'
  165. |("TrFile-CreateFile"
  166. TrFile-CreateFile
  167. |("TrFile-SetDefaultFileSpec"
  168. TrFile-SetDefaultFileSpec
  169. |("TrFile-SetContents"
  170. |("TrFile-ConvertFromFMText"
  171. TrFile-SetContents
  172. TrFile-ConvertFromFMText
  173. Cancel
  174. The file was written.J
  175. Cancel
  176. An error occurred. See the layout for the error code.
  177.   SelectFile
  178. A2This script will get let the user select a folder.B
  179. |("TrFile-Save FileSpec Dialog"
  180.  "Please specify a file:")
  181. TrFile-Save FileSpec Dialog
  182. Please specify a file:|
  183.  2) = "$$"
  184. A    Open file
  185. k{k|w
  186. [=g\gYg\.T
  187. g\c[_]c\ozc\g\[]g\c[o{c[g\[\g\24
  188. OYBw*
  189. _ZkZ[ZkZ_ZkZOZkZ[ZkZ_Zw
  190. k]k]{
  191. g\g=5
  192. 5sF6g]F
  193. o|g]k}
  194.     k]k]s
  195. o|g]{
  196. k]k]w
  197. Nv_:5
  198. g=g<_;w
  199. o\o}5
  200. k=JW1
  201. o\g{1
  202. g=k]5
  203. NvkZ2
  204. s}g]k\
  205. g=g<w
  206. g}k=o
  207. o^k{k}
  208. g]k=k
  209. g}k]o}
  210. Pro 3.0 - 4.0F!
  211. Sunday
  212. Monday
  213. Tuesday
  214.     Wednesday
  215. Thursday
  216. Friday
  217. Saturday
  218. January
  219. February
  220. March
  221. April
  222. August
  223.     September
  224. October
  225. November
  226. December
  227. 1st Quarter
  228. 2nd Quarter
  229. 3rd Quarter
  230. 4th Quarter
  231.